<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/14
  Time: 15:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style>
        .hl {
            color: red;
        }
    </style>
</head>
<body>
<form action="dosearch">
    <input type="text" name="keyword"/>
    <input type="submit" value="Search"/>
</form>
<hr/>
<c:forEach items="${list}" var="p">
    <div>
        <a href="detail?id=${p.id}">${p.name}</a>
        <p>${p.productDesc}</p>
    </div>

    <br/>
    <hr/>
</c:forEach>
</body>
</html>
